DEBUG_FLAGS=-g -o0 -Werror
CFLAGS=-Wall  			\
	$(MY_CFLAGS)		\
	-lm					\
	-lc					\
	-lz					\
	-lcrypto			\
	-lssl				\
	$(MY_LDFLAGS)

SROUCE=$(DIR_SROUCE)/*.c \
	$(DIR_SROUCE)/common/*.c
	
PROGRAM_NAME=openssl_test

all:
	@echo "============================================================"
	$(info [+] all target ...)
	$(CC) -std=c99 $(DEBUG_FLAGS) $(CFLAGS) $(SROUCE) -o $(DIR_OUT)/$(PROGRAM_NAME)

print:
	@echo "============================================================"
	@echo "PROGRAM_NAME=${PROGRAM_NAME}"
	@echo "MY_CFLAGS=${MY_CFLAGS}"
	@echo "MY_LDFLAGS=${MY_LDFLAGS}"
	@echo "CC=${CC}"

clean:
	@echo "============================================================"
	$(info [+] clean target ...)
	find . -type f -name "*.o" | xargs rm -rf
	find . -type f -name "*.a" | xargs rm -rf
	$(RM) -rf $(PROGRAM_NAME)
execute:
	@echo "============================================================"
	$(DIR_OUT)/$(PROGRAM_NAME)